﻿
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Text;
using TL_Cloud.Core.Interfaces;

namespace TL_Cloud.Core.Entities
{
    /// <summary>
    /// 基础实体类
    /// </summary>
    public abstract class BaseEntity : IEntity
    {
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 数据库映射类
        /// </summary>
        public abstract void Mapping(ModelBuilder modelBuilder);

        public virtual void Create(string userId, string userName)
        {

        }


        public virtual void Modify(string userId, string userName)
        {

        }

    }

}
